import $http from "@/utils/request";
//需要使用mock接口就在接口前面加上 /mock
// 登陆
export function login(params) {
  // return $http.request({ url: "/mock/login", data, method: "post" });
  return $http.request({ url: "/oauth/token", params, method: "get" });
}
// 登录信息
export function getLoginUser(params) {
  return $http.request({ url: "/mock/getLoginUser", params, method: "get" });
}
// 权限菜单
export function getMenuList(data) {
  return $http.request({ url: "/mock/menulist", data, method: "post" });
}
